<?php
$this->registerCssFile('@static/css/stars_list.css');

$this->title = "美少女_女生_美女网站-果图网";
!empty($tagString) && $this->title = "【{$tagString}】".$this->title;
$page > 1 && $this->title .= "-第{$page}页";

$this->registerMetaTag([
    'name'=>'description',
    'content'=>"果图网(guotuw.com)美女大全栏目搜集:全球最新最热门的{$tagString},海量高清{$tagString}写真图片照片就上果图网！"
]);

?>
<div class="main wrapper">
    <div class="place_nav">
        <a href="<?=Yii::$app->request->getHostInfo();?>" class="icon_home"><em></em></a>
        <a href="<?=Yii::$app->request->getHostInfo();?>">果图网</a>>
        <a style='color: #f69;' href="/meinv/">美女大全</a>
        <?php
            if(!empty($tagsInfo)){
                $tagCount = count($tagsInfo);
                for($i = 0 ; $i < $tagCount ; $i++){
                    if($i == 0){
                        echo "> <a style='color: #f69;' href='/meinv/{$tagsInfo[0]['alias']}/'>{$tagsInfo[0]['name']}</a>";
                    }else if($i == 1){
                        echo "> <a style='color: #f69;' href='/meinv/{$tagsInfo[0]['alias']}-{$tagsInfo[1]['alias']}/'>{$tagsInfo[1]['name']}</a>";
                    }else if($i == 2){
                        echo "> <a style='color: #f69;' href='/meinv/{$tagsInfo[0]['alias']}-{$tagsInfo[1]['alias']}-{$tagsInfo[2]['alias']}/'>{$tagsInfo[2]['name']}</a>";
                    }else if($i == 3){
                        echo "> <a style='color: #f69;' href='/meinv/{$tagsInfo[0]['alias']}-{$tagsInfo[1]['alias']}-{$tagsInfo[2]['alias']}-{$tagsInfo[3]['alias']}/'>{$tagsInfo[3]['name']}</a>";
                    }else if($i == 4){
                        echo "> <a style='color: #f69;' href='/meinv/{$tagsInfo[0]['alias']}-{$tagsInfo[1]['alias']}-{$tagsInfo[2]['alias']}-{$tagsInfo[3]['alias']}-{$tagsInfo[4]['alias']}/'>{$tagsInfo[4]['name']}</a>";
                    }
                }
//                print_r($tagsInfo);exit;
            }
        ?>
    </div>


    <div class="m-nav">
        <?php foreach ($menu as $type =>$tags):?>
            <div class="lnav_1">
                <span><?=$typeName[$type];?>:</span>
                <?php foreach ($tags as $tag):?>
                    <a href="<?=$tag['url']?>" title="<?=$tag['show_name']?>" <?php if($tag['selected'] == 1) echo 'class="cur"'; ?>  ><?=$tag['show_name']?></a>
                <?php endforeach;?>
            </div>
        <?php endforeach;?>
    </div>

    <ul class="fans_list">
        <?php foreach ($stars as $star): ?>
        <li>
            <a title="<?=$star['name']?>(<?=$star['nick_name']?>)" href="/meinv/<?=$star['id']?>.html" class="img" target="_blank">
                <img title="<?=$star['name']?>(<?=$star['nick_name']?>)" alt="<?=$star['name']?>(<?=$star['nick_name']?>)" src="<?=$star['header']?>">
            </a>
            <a title="<?=$star['name']?>(<?=$star['nick_name']?>)" href="/meinv/<?=$star['id']?>.html" target="_blank" class="fans_name"><?=$star['name']?></a>
            <span>
                <em class="fansnum"><i></i><?=$star['view']?></em>
                <em class="phnum"><i></i>NO.<?=$star['ranking']?></em>
            </span>
        </li>
        <?php endforeach;?>
        <div class="clear"></div>
    </ul>
<!--        --><?php //if(empty($stars)):?>
<!--            <div style="text-align:center;margin:20px 0;font-size:20px;">-->
<!--                Sorry,这波美女跑掉了，给您推荐以下美女。-->
<!--            </div>-->
<!--        --><?php //endif;?>
    <!--分页-->
    <div class="page">
        <?=$pageString;?>
    </div>
    <?php if(!empty($recommendStar)):?>
        <div class="fl mt20" <?php if(empty($stars)) echo "style='margin-top:-25px;'" ?>>
            <h2><span>推荐美女</span></h2>
            <ul class="fans_list">
                <?php foreach ($recommendStar as $star): ?>
                    <li>
                        <a title="<?=$star['name']?>(<?=$star['nick_name']?>)" href="/meinv/<?=$star['id']?>.html" class="img" target="_blank">
                            <img title="<?=$star['name']?>(<?=$star['nick_name']?>)" alt="<?=$star['name']?>(<?=$star['nick_name']?>)" src="<?=$star['header']?>">
                        </a>
                        <a title="<?=$star['name']?>(<?=$star['nick_name']?>)" href="/meinv/<?=$star['id']?>.html" target="_blank" class="fans_name"><?=$star['name']?></a>
                        <span>
                            <em class="fansnum"><i></i><?=$star['view']?></em>
                            <em class="phnum"><i></i>NO.<?=$star['ranking']?></em>
                        </span>
                    </li>
                <?php endforeach;?>
                <div class="clear"></div>
            </ul>
        </div>
    <?php endif;?>
</div>

